package com.ruoyi.web.customerclass.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.customerclass.mapper.CustomerclassMapper;
import com.ruoyi.web.customerclass.domain.Customerclass;
import com.ruoyi.web.customerclass.service.ICustomerclassService;

/**
 * customerclassService业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-29
 */
@Service
public class CustomerclassServiceImpl implements ICustomerclassService 
{
    @Autowired
    private CustomerclassMapper customerclassMapper;

    /**
     * 查询customerclass
     * 
     * @param cCCCode customerclass主键
     * @return customerclass
     */
    @Override
    public Customerclass selectCustomerclassByCCCCode(String cCCCode)
    {
        return customerclassMapper.selectCustomerclassByCCCCode(cCCCode);
    }

    /**
     * 查询customerclass列表
     * 
     * @param customerclass customerclass
     * @return customerclass
     */
    @Override
    public List<Customerclass> selectCustomerclassList(Customerclass customerclass)
    {
        return customerclassMapper.selectCustomerclassList(customerclass);
    }

    /**
     * 新增customerclass
     * 
     * @param customerclass customerclass
     * @return 结果
     */
    @Override
    public int insertCustomerclass(Customerclass customerclass)
    {
        return customerclassMapper.insertCustomerclass(customerclass);
    }

    /**
     * 修改customerclass
     * 
     * @param customerclass customerclass
     * @return 结果
     */
    @Override
    public int updateCustomerclass(Customerclass customerclass)
    {
        return customerclassMapper.updateCustomerclass(customerclass);
    }

    /**
     * 批量删除customerclass
     * 
     * @param cCCCodes 需要删除的customerclass主键
     * @return 结果
     */
    @Override
    public int deleteCustomerclassByCCCCodes(String[] cCCCodes)
    {
        return customerclassMapper.deleteCustomerclassByCCCCodes(cCCCodes);
    }

    /**
     * 删除customerclass信息
     * 
     * @param cCCCode customerclass主键
     * @return 结果
     */
    @Override
    public int deleteCustomerclassByCCCCode(String cCCCode)
    {
        return customerclassMapper.deleteCustomerclassByCCCCode(cCCCode);
    }
}
